package com.mac.hosp_pre.user.feign;

import com.mac.hosp_pre.reply.R;
import com.mac.hosp_pre.user.dto.PatientSimpRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("hosp-user-service")
public interface PatientFeignClient {

    @GetMapping("/api/user/patient/get/{id}")
    R<PatientSimpRespDto> getPatient(@PathVariable("id") Long id);
}
